<!doctype html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>后台登录-X-admin2.2</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <link rel="stylesheet" href="/backend/css/font.css">
    <link rel="stylesheet" href="/backend/css/xadmin.css">
</head>

<body>
    <div class="layui-container">
        <div class="fly-panel">
            <div class="fly-none">
                <h2><i class="layui-icon layui-icon-{{errtype}}"></i></h2>
                <p>{{message}}</p>
                <p><span class="timer">6</span>s后返回到登录页<a href="/admin/login"> 立即返回 </a></p>
                <!-- <p>页面或者数据被<a href=""> 纸飞机 </a>运到火星了，啥都看不到了…</p> -->
            </div>
        </div>
    </div>
    <script>
        window.onload = () => {
            let i = 6;
            let timerBox = document.querySelector('.timer');
            console.log(timerBox);
            setInterval(() => {
                timerBox.innerHTML = --i;
            }, 1000);

            setTimeout(() => {
                location.href = '/admin/login';
            }, 6000)
        }
    </script>
</body>

</html>